<!DOCTYPE html>
<html lang="zh-CN">

<head>
	<!-- csrf_token -->
	<meta name="csrf-token" content="{{ csrf_token() }}"> 
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>{{ config('app.name') }}</title>
	<link rel="shortcut icon" href="{{ asset('/images/deng.jpg') }}" type="image/x-icon"/>
	<!--  bootstrap css 引入  -->
    <link href="{{ asset('/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
	<!--  jq 引入  -->
	<script src=" {{ asset('/js/jquery-1.8.3.min.js') }} "></script>
	<script src=" {{ asset('/bootstrap/js/jquery.min.js') }} "></script>
	<script src=" {{ asset('/bootstrap/js/bootstrap.min.js') }} " ></script>
	<style type="text/css">
		a:hover,a:active{color:#FF4500;}
		body {
			background: #fff;
			color: #74777b;
			font-weight: 500;
			font-size: 1.3em;
			font-family: 'Raleway', Arial, sans-serif;
		}
	</style>
	<script type="text/javascript">
	
		<!-- 设置全局ajax选项 -->
		$.ajaxSetup({
			headers: {
				'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
			}
		});
		// 获取 token
		var _token = $('meta[name="csrf-token"]').attr('content');
		
		$(function()
		{
			// 信息提示
			$(".err_edit").slideDown(1000);
			$(".err_edit").delay(1500).slideUp(1000);
			
		});
			
	</script>
	
</head>

<body>


<!-- 提示信息 -->
@if( session('authinfo') )
<div style="position:fixed;width:300px;height:50px;background:#c9302c;border-radius:5px;top:52px;left:39%;z-index:1000;display:none;color:#fff;font-size:20px;text-align:center;padding-top:10px;" class="err_edit" >{{ session('authinfo') }}</div>
@else
@endif


<!-- 提示信息 -->
<div style="position:fixed;width:300px;height:50px;background:#c9302c;border-radius:5px;top:52px;left:39%;z-index:1000;display:none;color:#fff;font-size:20px;text-align:center;padding-top:10px;" class="opa" ></div>


<!-- 导航栏 -->
<div data-example-id="navbar-fixed-to-top" class="bs-example bs-navbar-top-example" >
	<!-- 添加 .navbar-fixed-top 类可以让导航条固定在顶部 -->
	<nav class="navbar-fixed-top navbar navbar-inverse" >
		<div class="container-fluid" >
			
			<div class="navbar-header"  >
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-9" aria-expanded="false">
					<span class="sr-only"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a href="{{ url('/') }}" class="navbar-brand" style="font-size:21px;">Dream Car</a>
			</div>
				

			<div class="navbar-collapse collapse" id="bs-example-navbar-collapse-9" aria-expanded="false" style="height: 1px;">
				<ul class="nav navbar-nav text-center">
					<!-- 下拉选项 -->
					<!-- <li class="active"> -->
					<!-- <li class="dropdown"> -->
					@forelse( session('bar_auth') as $desc => $auth_array )
					<li>
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" style="font-size:18px;" >
							{{ $desc }}<span class="caret"></span>
						</a>
						<!-- 必有类 dropdown-menu -->
						<ul class="dropdown-menu" >
							@forelse( $auth_array as $key => $auth )
							<li>
								<a href="{{ url($auth['route']) }}"  style="font-size:18px;" >
								{{ $auth['name'] }}
								</a>
							</li>
							@empty
							@endforelse
						</ul>
					</li>
					@empty
					@endforelse
					
					<li>
						<a style="font-size:16px;" >{{ session('admin_name') }}</a>
					</li>
					<li>
						<a href="{{ url('/outLogin') }}" style="font-size:17px;">退出</a>
					</li>
				</ul>
			</div>
      </div>
    </nav>
</div>
